-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added [sch_componet_name and MPN] to createSvgObjectsFromSchematicComponentWithBox fn #153
Conversation
…SchematicComponentWithBox
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well the text is being created twice now right- so you'll want to conditionally avoid rendering it in the second place
else if (elm.type === "schematic_text") {
const schComponents= su(circuitJson).schematic_component.get(elm.schematic_component_id)
if(!schComponents) {
schText.push(createSvgSchText(elm, transform))
}
} |
Yea something like that @AnasSarkiz, although i think the existence of the id is probably enough- no need to search for the schComponent which is a bit expensive computationally |
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
if (!elm.schematic_component_id.includes("schematic_component")) {
schText.push(createSvgSchText(elm, transform))
}
|
@AnasSarkiz that doesn't really make sense, just the existence of |
Size ReportBundle Size
Install Size
Full Howfat Output (PR Branch)
|
if (elm.type === "schematic_text" && !elm.schematic_component_id) {
schText.push(createSvgSchText(elm, transform))
}
|
Maybe? Id have to see it in the pr.... |
@seveibar |
/closes #152
/claim #152